<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<%@ include file="/WEB-INF/views/include/easyui.jsp"%>

</head>
<body>
	<div>
		<form id="mainform" action="<%=path %>/system/Area/${action}" method="post">
			<table class="formTable">
				<tr>
					<td>区域名称：</td>
					<td><input type="hidden" name="id" value="${area.id }" /> 
					<input
						name="areaName" type="text" value="${area.areaName }"
						class="easyui-validatebox"
						data-options="required:true,validType:['length[0,50]']" /></td>
				</tr>
				<tr>
					<td>区域代码：</td>
					<td><input name="areaCode" type="text"
						value="${area.areaCode }" class="easyui-validatebox"
						data-options="required:true,validType:['length[0,12]']" /></td>
				</tr>
				
			</table>
		</form>
	</div>
	<script type="text/javascript">
	$(function() {
		
		var action = "${action}";
		$('#mainform').form({
			onSubmit : function() {

				var isValid = $(this).form('validate');
				return isValid; // 返回false终止表单提交
			},
			success : function(data) {
				if (successTip(data, dg, d))
					dg.treegrid('reload');
			}
		});
	});
	//上级菜单
	
	</script>
</body>
</html>